Skip to main content

Download Attachment

AutomatR.ExchangeServer.Activities.DownloadAttachment

The "Download Attachment" activity in AutomatR is part of the Exchange Server activities package, providing the capability to retrieve email attachments and save them to a designated local folder. This activity enhances automation workflows by enabling the extraction and storage of attachments from email messages.

Properties

NameDescription
Input
Download ToEnter the complete path of the local drive where the email attachments should be downloaded. String variable.
Mail MessageEnter the mail message containing the attachments to be downloaded. Use the MailMessage variable.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow.
Optional
DelayEnter the wait time in seconds (e.g., 5) to start the activity.

How to use:

  1. Drag and drop the "Download Attachment" activity onto the workflow.
  2. Configure the properties by specifying the mail message containing attachments and the local path to download them.
  3. Optionally, customize the display name and set a delay if necessary.
  4. Execute the workflow to retrieve and save attachments from the specified email message.

Example: Consider an example where the "Download Attachment" activity is used to download attachments from a specific email message:

Download Attachment:
Display Name: "Download Invoice Attachments"
Mail Message: invoiceMailMessage
Download To: "C:\Attachments\Invoices\"

In this example, the activity downloads attachments from the invoiceMailMessage and saves them to the "C:\Attachments\Invoices\" folder on the local drive.